/* Layout */
import Layout from '@/layout/base-admin/index'

const baseConstant = [
]
const baseAsync = [
]

const baseConstantAdminRouter = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path(.*)',
        component: () => import('@/views/base-admin/redirect/index')
      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/base-admin/login/index'),
    hidden: true
  },
  {
    path: '/auth-redirect',
    component: () => import('@/views/base-admin/login/auth-redirect'),
    hidden: true
  },
  {
    path: '/404',
    component: () => import('@/views/base-admin/error-page/404'),
    hidden: true
  },
  {
    path: '/401',
    component: () => import('@/views/base-admin/error-page/401'),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: 'three/file-list'
  },
  // ...baseConstant
]

const baseAsyncAdminRouter = [
  // ...baseAsync,

  // 404 page must be placed at the end !!!
  {path: '*', redirect: '/404', hidden: true}
]

export {baseConstantAdminRouter, baseAsyncAdminRouter}
